<?php

session_start();

//Inclui o arquivo de configuracao do Framework.
include_once 'framework/Config.php';


/**
 * __autoload, inclui as classes dinamicamente
 * @param $class
 */

spl_autoload_register(function ($class) {
	$classPath = Config::$CLASS_PATH;
	foreach ($classPath as $Path) {
		if (file_exists("{$Path}/{$class}.php")) {
			require_once "{$Path}/{$class}.php";
			return true;
		}
	}
	return false;
});


Security::singleton();

/*
$user = new stdClass();
$user->nome  	= 'thyago';
$user->group 	= array('RH', 'administrador');
$user->usuario 	= 'thyago';

Session::setValue('user', $user);
*/

//Session::destroy('user');
// echo '<pre>';
// print_r(Security::getObjSecurity());
// echo '</pre>';

Uri::setURI();



?>